Skip to content

Conversation

@j-piasecki
Copy link
Member

@j-piasecki j-piasecki commented Dec 16, 2021

Description

Add prop testId which allows to set handlerTag property of gesture handlers in Jest environments.
Add withTestId method to gesture config objects which behaves in the same way.

Add handler registry for Jest environment which allows to find every gesture configuration and gesture handler in tests using handlerTag.

This change simplifies creating tests for Gesture Handler as each gesture can have its tag set explicitly and handlerTag is necessary to deliver events to relevant handler.

Test plan

Tested on a separate app

@jgonet
Copy link
Member

jgonet commented Jan 27, 2022

Incorporated in #1844.

@jgonet jgonet closed this Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants